import http from '@/module/io/http'
// const perfix = '/dgh'
const perfix = ''

/* 获取资源列表 */
export const getProductList = async (params) => {
  let res = await http.get(`${perfix}/product/list`, { params })
  return res
}
/* 同步资源 */
export const getSync = async () => {
  let res = await http.post(`${perfix}/product/sync`)
  return res
}
/* 资源详情 */
export const getProductInfo = async (productId) => {
  let res = await http.get(`${perfix}/product/${productId}`)
  return res
}
/* 资源edit */
export const putProductInfo = async (data) => {
  let res = await http.put(`${perfix}/product`, data)
  return res
}
